<?php
header('Content-Type:text/html;Charset=UTF-8');

@$login = $_REQUEST['login'];

@$password = $_REQUEST['password']; 

$message='';

if (empty($password)){
	$message="密码不能为空！";
	include "Alteruse.php";
	die;

}
require 'lib/db.php';

@$flag = dbUpdate("update users set password=:password where id=:id",array('password'=>$password));

if ($flag==false){
	$message="修改失败！";
	include "Alteruse.php";
	die;
}

